using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX.DirectInput;
using TgcViewer;

namespace AlumnoEjemplos.TP3D.Acciones
{
    class Salto : Accion
    {
        #region Accion Members

        Key _input;

        public Salto(Key input)
        {
            _input = input;
        }

        public void AplicateA(Mario mario)
        {
            if (GuiController.Instance.D3dInput.keyDown(_input))
            {
                mario.Salta();
            }
        }

        #endregion
    }
}
